home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 9 / AMUG BBS in a Box Volume IX (August 1993) (MacWizards).iso / Files / Prog / A / 002. TESample.cpt / TESample.h < prev    next >
MacBinary  |  1988-08-02  |  6.4 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: TESample.h

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Aug 2 00:54:41 1988, modified Tue Aug 2 00:54:41 1988, creator 'MPS ', type ASCII, 5892 bytes "TESample.h" , at 0x1784 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 54 45 53 61 6d 70 | 6c 65 2e 68 00 00 00 00 |..TESamp|le.h....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 17 04 00 | 00 01 7e 9f 1a fb 91 9f |........|..~.....|
|00000060| 1a fb 91 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 5f 05 00 00 |........|...._...|
|00000080| 2f 2a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/*------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000d0| 0d 23 0d 23 09 41 70 70 | 6c 65 20 4d 61 63 69 6e |.#.#.App|le Macin|
|000000e0| 74 6f 73 68 20 44 65 76 | 65 6c 6f 70 65 72 20 54 |tosh Dev|eloper T|
|000000f0| 65 63 68 6e 69 63 61 6c | 20 53 75 70 70 6f 72 74 |echnical| Support|
|00000100| 0d 23 0d 23 09 4d 75 6c | 74 69 46 69 6e 64 65 72 |.#.#.Mul|tiFinder|
|00000110| 2d 41 77 61 72 65 20 54 | 65 78 74 45 64 69 74 20 |-Aware T|extEdit |
|00000120| 53 61 6d 70 6c 65 20 41 | 70 70 6c 69 63 61 74 69 |Sample A|pplicati|
|00000130| 6f 6e 0d 23 0d 23 09 54 | 45 53 61 6d 70 6c 65 0d |on.#.#.T|ESample.|
|00000140| 23 0d 23 09 54 45 53 61 | 6d 70 6c 65 2e 68 09 2d |#.#.TESa|mple.h.-|
|00000150| 09 52 65 7a 20 49 6e 63 | 6c 75 64 65 20 53 6f 75 |.Rez Inc|lude Sou|
|00000160| 72 63 65 0d 23 0d 23 09 | 43 6f 70 79 72 69 67 68 |rce.#.#.|Copyrigh|
|00000170| 74 20 a9 20 31 39 38 38 | 20 41 70 70 6c 65 20 43 |t . 1988| Apple C|
|00000180| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 0d 23 09 |omputer,| Inc..#.|
|00000190| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|000001a0| 76 65 64 2e 0d 23 0d 23 | 09 56 65 72 73 69 6f 6e |ved..#.#|.Version|
|000001b0| 73 3a 09 31 2e 30 09 09 | 09 09 09 38 2f 38 38 0d |s:.1.0..|...8/88.|
|000001c0| 23 0d 23 09 43 6f 6d 70 | 6f 6e 65 6e 74 73 3a 09 |#.#.Comp|onents:.|
|000001d0| 54 45 53 61 6d 70 6c 65 | 2e 70 09 09 09 41 75 67 |TESample|.p...Aug|
|000001e0| 75 73 74 20 31 2c 20 31 | 39 38 38 0d 23 09 09 09 |ust 1, 1|988.#...|
|000001f0| 09 54 45 53 61 6d 70 6c | 65 2e 63 09 09 09 41 75 |.TESampl|e.c...Au|
|00000200| 67 75 73 74 20 31 2c 20 | 31 39 38 38 0d 23 09 09 |gust 1, |1988.#..|
|00000210| 09 09 54 45 53 61 6d 70 | 6c 65 2e 61 09 09 09 41 |..TESamp|le.a...A|
|00000220| 75 67 75 73 74 20 31 2c | 20 31 39 38 38 0d 23 09 |ugust 1,| 1988.#.|
|00000230| 09 09 09 54 45 53 61 6d | 70 6c 65 2e 72 09 09 09 |...TESam|ple.r...|
|00000240| 41 75 67 75 73 74 20 31 | 2c 20 31 39 38 38 0d 23 |August 1|, 1988.#|
|00000250| 09 09 09 09 54 45 53 61 | 6d 70 6c 65 2e 68 09 09 |....TESa|mple.h..|
|00000260| 09 41 75 67 75 73 74 20 | 31 2c 20 31 39 38 38 0d |.August |1, 1988.|
|00000270| 23 09 09 09 09 50 54 45 | 53 61 6d 70 6c 65 2e 6d |#....PTE|Sample.m|
|00000280| 61 6b 65 09 09 41 75 67 | 75 73 74 20 31 2c 20 31 |ake..Aug|ust 1, 1|
|00000290| 39 38 38 0d 23 09 09 09 | 09 43 54 45 53 61 6d 70 |988.#...|.CTESamp|
|000002a0| 6c 65 2e 6d 61 6b 65 09 | 09 41 75 67 75 73 74 20 |le.make.|.August |
|000002b0| 31 2c 20 31 39 38 38 0d | 23 0d 23 09 54 45 53 61 |1, 1988.|#.#.TESa|
|000002c0| 6d 70 6c 65 20 69 73 20 | 61 6e 20 65 78 61 6d 70 |mple is |an examp|
|000002d0| 6c 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 74 |le appli|cation t|
|000002e0| 68 61 74 20 64 65 6d 6f | 6e 73 74 72 61 74 65 73 |hat demo|nstrates|
|000002f0| 20 68 6f 77 20 0d 23 09 | 74 6f 20 69 6e 69 74 69 | how .#.|to initi|
|00000300| 61 6c 69 7a 65 20 74 68 | 65 20 63 6f 6d 6d 6f 6e |alize th|e common|
|00000310| 6c 79 20 75 73 65 64 20 | 74 6f 6f 6c 62 6f 78 20 |ly used |toolbox |
|00000320| 6d 61 6e 61 67 65 72 73 | 2c 20 6f 70 65 72 61 74 |managers|, operat|
|00000330| 65 20 0d 23 09 73 75 63 | 63 65 73 73 66 75 6c 6c |e .#.suc|cessfull|
|00000340| 79 20 75 6e 64 65 72 20 | 4d 75 6c 74 69 46 69 6e |y under |MultiFin|
|00000350| 64 65 72 2c 20 68 61 6e | 64 6c 65 20 64 65 73 6b |der, han|dle desk|
|00000360| 20 61 63 63 65 73 73 6f | 72 69 65 73 20 61 6e 64 | accesso|ries and|
|00000370| 20 0d 23 09 63 72 65 61 | 74 65 2c 20 67 72 6f 77 | .#.crea|te, grow|
|00000380| 2c 20 61 6e 64 20 7a 6f | 6f 6d 20 77 69 6e 64 6f |, and zo|om windo|
|00000390| 77 73 2e 20 54 68 65 20 | 66 75 6e 64 61 6d 65 6e |ws. The |fundamen|
|000003a0| 74 61 6c 20 54 65 78 74 | 45 64 69 74 20 0d 23 09 |tal Text|Edit .#.|
|000003b0| 74 6f 6f 6c 62 6f 78 20 | 63 61 6c 6c 73 20 61 6e |toolbox |calls an|
|000003c0| 64 20 54 65 78 74 45 64 | 69 74 20 61 75 74 6f 73 |d TextEd|it autos|
|000003d0| 63 72 6f 6c 6c 20 61 72 | 65 20 64 65 6d 6f 6e 73 |croll ar|e demons|
|000003e0| 74 72 61 74 65 64 2e 20 | 49 74 20 0d 23 09 61 6c |trated. |It .#.al|
|000003f0| 73 6f 20 73 68 6f 77 73 | 20 68 6f 77 20 74 6f 20 |so shows| how to |
|00000400| 63 72 65 61 74 65 20 61 | 6e 64 20 6d 61 69 6e 74 |create a|nd maint|
|00000410| 61 69 6e 20 73 63 72 6f | 6c 6c 62 61 72 20 63 6f |ain scro|llbar co|
|00000420| 6e 74 72 6f 6c 73 2e 0d | 23 0d 23 09 49 74 20 64 |ntrols..|#.#.It d|
|00000430| 6f 65 73 20 6e 6f 74 20 | 62 79 20 61 6e 79 20 6d |oes not |by any m|
|00000440| 65 61 6e 73 20 64 65 6d | 6f 6e 73 74 72 61 74 65 |eans dem|onstrate|
|00000450| 20 61 6c 6c 20 74 68 65 | 20 74 65 63 68 6e 69 71 | all the| techniq|
|00000460| 75 65 73 20 79 6f 75 20 | 0d 23 09 6e 65 65 64 20 |ues you |.#.need |
|00000470| 66 6f 72 20 61 20 6c 61 | 72 67 65 20 61 70 70 6c |for a la|rge appl|
|00000480| 69 63 61 74 69 6f 6e 2e | 20 49 6e 20 70 61 72 74 |ication.| In part|
|00000490| 69 63 75 6c 61 72 2c 20 | 53 61 6d 70 6c 65 20 64 |icular, |Sample d|
|000004a0| 6f 65 73 20 6e 6f 74 20 | 0d 23 09 63 6f 76 65 72 |oes not |.#.cover|
|000004b0| 20 65 78 63 65 70 74 69 | 6f 6e 20 68 61 6e 64 6c | excepti|on handl|
|000004c0| 69 6e 67 2c 20 6d 75 6c | 74 69 70 6c 65 20 77 69 |ing, mul|tiple wi|
|000004d0| 6e 64 6f 77 73 2f 64 6f | 63 75 6d 65 6e 74 73 2c |ndows/do|cuments,|
|000004e0| 20 0d 23 09 73 6f 70 68 | 69 73 74 69 63 61 74 65 | .#.soph|isticate|
|000004f0| 64 20 6d 65 6d 6f 72 79 | 20 6d 61 6e 61 67 65 6d |d memory| managem|
|00000500| 65 6e 74 2c 20 70 72 69 | 6e 74 69 6e 67 2c 20 6f |ent, pri|nting, o|
|00000510| 72 20 75 6e 64 6f 2e 20 | 41 6c 6c 20 6f 66 20 0d |r undo. |All of .|
|00000520| 23 09 74 68 65 73 65 20 | 61 72 65 20 76 69 74 61 |#.these |are vita|
|00000530| 6c 20 70 61 72 74 73 20 | 6f 66 20 61 20 6e 6f 72 |l parts |of a nor|
|00000540| 6d 61 6c 20 66 75 6c 6c | 2d 73 69 7a 65 64 20 61 |mal full|-sized a|
|00000550| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 0d 23 0d 23 09 |pplicati|on..#.#.|
|00000560| 54 68 69 73 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |This app|lication|
|00000570| 20 69 73 20 61 6e 20 65 | 78 61 6d 70 6c 65 20 6f | is an e|xample o|
|00000580| 66 20 74 68 65 20 66 6f | 72 6d 20 6f 66 20 61 20 |f the fo|rm of a |
|00000590| 4d 61 63 69 6e 74 6f 73 | 68 20 0d 23 09 61 70 70 |Macintos|h .#.app|
|000005a0| 6c 69 63 61 74 69 6f 6e | 3b 20 69 74 20 69 73 20 |lication|; it is |
|000005b0| 4e 4f 54 20 61 20 74 65 | 6d 70 6c 61 74 65 2e 20 |NOT a te|mplate. |
|000005c0| 49 74 20 69 73 20 4e 4f | 54 20 69 6e 74 65 6e 64 |It is NO|T intend|
|000005d0| 65 64 20 74 6f 20 62 65 | 20 0d 23 09 75 73 65 64 |ed to be| .#.used|
|000005e0| 20 61 73 20 61 20 66 6f | 75 6e 64 61 74 69 6f 6e | as a fo|undation|
|000005f0| 20 66 6f 72 20 74 68 65 | 20 6e 65 78 74 20 77 6f | for the| next wo|
|00000600| 72 6c 64 2d 63 6c 61 73 | 73 2c 20 62 65 73 74 2d |rld-clas|s, best-|
|00000610| 73 65 6c 6c 69 6e 67 2c | 20 0d 23 09 36 30 30 4b |selling,| .#.600K|
|00000620| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 2e 20 41 20 | applica|tion. A |
|00000630| 73 74 69 63 6b 20 66 69 | 67 75 72 65 20 64 72 61 |stick fi|gure dra|
|00000640| 77 69 6e 67 20 6f 66 20 | 74 68 65 20 68 75 6d 61 |wing of |the huma|
|00000650| 6e 20 62 6f 64 79 20 6d | 61 79 20 0d 23 09 62 65 |n body m|ay .#.be|
|00000660| 20 61 20 67 6f 6f 64 20 | 65 78 61 6d 70 6c 65 20 | a good |example |
|00000670| 6f 66 20 74 68 65 20 66 | 6f 72 6d 20 66 6f 72 20 |of the f|orm for |
|00000680| 61 20 70 61 69 6e 74 69 | 6e 67 2c 20 62 75 74 20 |a painti|ng, but |
|00000690| 74 68 61 74 20 64 6f 65 | 73 20 6e 6f 74 20 0d 23 |that doe|s not .#|
|000006a0| 09 6d 65 61 6e 20 69 74 | 20 73 68 6f 75 6c 64 20 |.mean it| should |
|000006b0| 62 65 20 75 73 65 64 20 | 61 73 20 74 68 65 20 62 |be used |as the b|
|000006c0| 61 73 69 73 20 66 6f 72 | 20 74 68 65 20 6e 65 78 |asis for| the nex|
|000006d0| 74 20 4d 6f 6e 61 20 4c | 69 73 61 2e 0d 23 0d 23 |t Mona L|isa..#.#|
|000006e0| 09 57 65 20 72 65 63 6f | 6d 6d 65 6e 64 20 74 68 |.We reco|mmend th|
|000006f0| 61 74 20 79 6f 75 20 72 | 65 76 69 65 77 20 74 68 |at you r|eview th|
|00000700| 69 73 20 70 72 6f 67 72 | 61 6d 20 6f 72 20 53 61 |is progr|am or Sa|
|00000710| 6d 70 6c 65 20 62 65 66 | 6f 72 65 20 0d 23 09 62 |mple bef|ore .#.b|
|00000720| 65 67 69 6e 6e 69 6e 67 | 20 61 20 6e 65 77 20 61 |eginning| a new a|
|00000730| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 20 53 61 6d 70 |pplicati|on. Samp|
|00000740| 6c 65 20 69 73 20 61 20 | 73 69 6d 70 6c 65 20 61 |le is a |simple a|
|00000750| 70 70 2e 20 77 68 69 63 | 68 20 64 6f 65 73 6e d5 |pp. whic|h doesn.|
|00000760| 74 20 0d 23 09 75 73 65 | 20 54 65 78 74 45 64 69 |t .#.use| TextEdi|
|00000770| 74 20 6f 72 20 74 68 65 | 20 43 6f 6e 74 72 6f 6c |t or the| Control|
|00000780| 20 4d 61 6e 61 67 65 72 | 2e 0d 23 0d 2d 2d 2d 2d | Manager|..#.----|
|00000790| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000007a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000007b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000007c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000007d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2a 2f 0d 0d 2f 2a |--------|--*/../*|
|000007e0| 09 74 68 65 73 65 20 23 | 64 65 66 69 6e 65 73 20 |.these #|defines |
|000007f0| 63 6f 72 72 65 73 70 6f | 6e 64 20 74 6f 20 76 61 |correspo|nd to va|
|00000800| 6c 75 65 73 20 69 6e 20 | 74 68 65 20 50 61 73 63 |lues in |the Pasc|
|00000810| 61 6c 20 73 6f 75 72 63 | 65 20 63 6f 64 65 2e 0d |al sourc|e code..|
|00000820| 09 53 61 6d 70 6c 65 2e | 63 20 69 6e 63 6c 75 64 |.Sample.|c includ|
|00000830| 65 73 20 74 68 69 73 20 | 66 69 6c 65 2e 20 2a 2f |es this |file. */|
|00000840| 0d 0d 23 64 65 66 69 6e | 65 20 6b 4d 69 6e 53 69 |..#defin|e kMinSi|
|00000850| 7a 65 09 34 30 09 09 09 | 09 2f 2a 20 61 70 70 6c |ze.40...|./* appl|
|00000860| 69 63 61 74 69 6f 6e 27 | 73 20 6d 69 6e 69 6d 75 |ication'|s minimu|
|00000870| 6d 20 73 69 7a 65 20 28 | 69 6e 20 4b 29 20 2a 2f |m size (|in K) */|
|00000880| 0d 2f 2a 20 77 65 20 6c | 6f 6f 6b 65 64 20 61 74 |./* we l|ooked at|
|00000890| 20 61 20 68 65 61 70 20 | 64 75 6d 70 20 77 68 69 | a heap |dump whi|
|000008a0| 6c 65 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 77 |le the p|rogram w|
|000008b0| 61 73 20 72 75 6e 6e 69 | 6e 67 20 2a 2f 0d 2f 2a |as runni|ng */./*|
|000008c0| 20 69 74 20 77 61 73 20 | 75 73 69 6e 67 20 61 62 | it was |using ab|
|000008d0| 6f 75 74 20 32 37 4b 3b | 20 77 65 20 61 64 64 65 |out 27K;| we adde|
|000008e0| 64 20 31 33 4b 20 66 6f | 72 20 73 74 61 63 6b 2c |d 13K fo|r stack,|
|000008f0| 20 74 65 78 74 20 26 20 | 73 63 72 61 70 73 20 2a | text & |scraps *|
|00000900| 2f 0d 23 64 65 66 69 6e | 65 20 6b 50 72 65 66 53 |/.#defin|e kPrefS|
|00000910| 69 7a 65 09 36 30 09 09 | 09 09 2f 2a 20 61 70 70 |ize.60..|../* app|
|00000920| 6c 69 63 61 74 69 6f 6e | 27 73 20 70 72 65 66 65 |lication|'s prefe|
|00000930| 72 72 65 64 20 73 69 7a | 65 20 28 69 6e 20 4b 29 |rred siz|e (in K)|
|00000940| 20 2a 2f 0d 2f 2a 20 77 | 65 20 6d 61 64 65 20 74 | */./* w|e made t|
|00000950| 68 69 73 20 28 70 72 65 | 66 65 72 72 65 64 29 20 |his (pre|ferred) |
|00000960| 73 69 7a 65 20 62 69 67 | 67 65 72 20 74 68 61 6e |size big|ger than|
|00000970| 20 74 68 65 20 6f 74 68 | 65 72 20 28 6d 69 6e 69 | the oth|er (mini|
|00000980| 6d 75 6d 29 20 73 69 7a | 65 20 2a 2f 0d 2f 2a 20 |mum) siz|e */./* |
|00000990| 73 6f 20 79 6f 75 20 63 | 61 6e 20 68 61 76 65 20 |so you c|an have |
|000009a0| 6d 6f 72 65 20 74 65 78 | 74 20 26 20 73 63 72 61 |more tex|t & scra|
|000009b0| 70 73 20 2a 2f 0d 0d 23 | 64 65 66 69 6e 65 09 72 |ps */..#|define.r|
|000009c0| 4d 65 6e 75 42 61 72 09 | 31 32 38 09 09 09 09 2f |MenuBar.|128..../|
|000009d0| 2a 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 27 73 20 |* applic|ation's |
|000009e0| 6d 65 6e 75 20 62 61 72 | 20 2a 2f 0d 23 64 65 66 |menu bar| */.#def|
|000009f0| 69 6e 65 09 72 41 62 6f | 75 74 41 6c 65 72 74 09 |ine.rAbo|utAlert.|
|00000a00| 31 32 38 09 09 09 09 2f | 2a 20 61 62 6f 75 74 20 |128..../|* about |
|00000a10| 61 6c 65 72 74 20 2a 2f | 0d 23 64 65 66 69 6e 65 |alert */|.#define|
|00000a20| 09 72 45 64 69 74 41 6c | 65 72 74 09 31 32 39 09 |.rEditAl|ert.129.|
|00000a30| 09 09 09 2f 2a 20 65 64 | 69 74 20 65 72 72 6f 72 |.../* ed|it error|
|00000a40| 20 61 6c 65 72 74 20 2a | 2f 0d 23 64 65 66 69 6e | alert *|/.#defin|
|00000a50| 65 09 72 44 6f 63 57 69 | 6e 64 6f 77 09 31 32 38 |e.rDocWi|ndow.128|
|00000a60| 09 09 09 09 2f 2a 20 61 | 70 70 6c 69 63 61 74 69 |..../* a|pplicati|
|00000a70| 6f 6e 27 73 20 77 69 6e | 64 6f 77 20 2a 2f 0d 23 |on's win|dow */.#|
|00000a80| 64 65 66 69 6e 65 09 72 | 56 53 63 72 6f 6c 6c 09 |define.r|VScroll.|
|00000a90| 31 32 38 09 09 09 09 2f | 2a 20 76 65 72 74 69 63 |128..../|* vertic|
|00000aa0| 61 6c 20 73 63 72 6f 6c | 6c 62 61 72 20 63 6f 6e |al scrol|lbar con|
|00000ab0| 74 72 6f 6c 20 2a 2f 0d | 23 64 65 66 69 6e 65 09 |trol */.|#define.|
|00000ac0| 72 48 53 63 72 6f 6c 6c | 09 31 32 39 09 09 09 09 |rHScroll|.129....|
|00000ad0| 2f 2a 20 68 6f 72 69 7a | 6f 6e 74 61 6c 20 73 63 |/* horiz|ontal sc|
|00000ae0| 72 6f 6c 6c 62 61 72 20 | 63 6f 6e 74 72 6f 6c 20 |rollbar |control |
|00000af0| 2a 2f 0d 0d 2f 2a 20 53 | 79 73 45 6e 76 69 72 6f |*/../* S|ysEnviro|
|00000b00| 6e 73 56 65 72 73 69 6f | 6e 20 69 73 20 70 61 73 |nsVersio|n is pas|
|00000b10| 73 65 64 20 74 6f 20 53 | 79 73 45 6e 76 69 72 6f |sed to S|ysEnviro|
|00000b20| 6e 73 20 74 6f 20 74 65 | 6c 6c 20 69 74 20 77 68 |ns to te|ll it wh|
|00000b30| 69 63 68 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |ich vers|ion of t|
|00000b40| 68 65 0d 20 20 20 53 79 | 73 45 6e 76 52 65 63 20 |he. Sy|sEnvRec |
|00000b50| 77 65 20 75 6e 64 65 72 | 73 74 61 6e 64 2e 20 2a |we under|stand. *|
|00000b60| 2f 0d 23 64 65 66 69 6e | 65 09 73 79 73 45 6e 76 |/.#defin|e.sysEnv|
|00000b70| 69 72 6f 6e 73 56 65 72 | 73 69 6f 6e 09 09 31 0d |ironsVer|sion..1.|
|00000b80| 0d 2f 2a 20 4f 53 45 76 | 65 6e 74 20 69 73 20 74 |./* OSEv|ent is t|
|00000b90| 68 65 20 65 76 65 6e 74 | 20 6e 75 6d 62 65 72 20 |he event| number |
|00000ba0| 6f 66 20 74 68 65 20 73 | 75 73 70 65 6e 64 2f 72 |of the s|uspend/r|
|00000bb0| 65 73 75 6d 65 20 61 6e | 64 20 6d 6f 75 73 65 2d |esume an|d mouse-|
|00000bc0| 6d 6f 76 65 64 20 65 76 | 65 6e 74 73 20 73 65 6e |moved ev|ents sen|
|00000bd0| 74 0d 20 20 20 62 79 20 | 4d 75 6c 74 69 46 69 6e |t. by |MultiFin|
|00000be0| 64 65 72 2e 20 4f 6e 63 | 65 20 77 65 20 64 65 74 |der. Onc|e we det|
|00000bf0| 65 72 6d 69 6e 65 20 74 | 68 61 74 20 61 6e 20 65 |ermine t|hat an e|
|00000c00| 76 65 6e 74 20 69 73 20 | 61 6e 20 6f 73 45 76 65 |vent is |an osEve|
|00000c10| 6e 74 2c 20 77 65 20 6c | 6f 6f 6b 20 61 74 20 74 |nt, we l|ook at t|
|00000c20| 68 65 0d 20 20 20 68 69 | 67 68 20 62 79 74 65 20 |he. hi|gh byte |
|00000c30| 6f 66 20 74 68 65 20 6d | 65 73 73 61 67 65 20 73 |of the m|essage s|
|00000c40| 65 6e 74 20 74 6f 20 64 | 65 74 65 72 6d 69 6e 65 |ent to d|etermine|
|00000c50| 20 77 68 69 63 68 20 6b | 69 6e 64 20 69 74 20 69 | which k|ind it i|
|00000c60| 73 2e 20 54 6f 20 64 69 | 66 66 65 72 65 6e 74 69 |s. To di|fferenti|
|00000c70| 61 74 65 0d 20 20 20 73 | 75 73 70 65 6e 64 20 61 |ate. s|uspend a|
|00000c80| 6e 64 20 72 65 73 75 6d | 65 20 65 76 65 6e 74 73 |nd resum|e events|
|00000c90| 20 77 65 20 63 68 65 63 | 6b 20 74 68 65 20 72 65 | we chec|k the re|
|00000ca0| 73 75 6d 65 4d 61 73 6b | 20 62 69 74 2e 20 2a 2f |sumeMask| bit. */|
|00000cb0| 0d 23 64 65 66 69 6e 65 | 09 6f 73 45 76 65 6e 74 |.#define|.osEvent|
|00000cc0| 09 09 09 09 09 61 70 70 | 34 45 76 74 09 2f 2a 20 |.....app|4Evt./* |
|00000cd0| 65 76 65 6e 74 20 75 73 | 65 64 20 62 79 20 4d 75 |event us|ed by Mu|
|00000ce0| 6c 74 69 46 69 6e 64 65 | 72 20 2a 2f 0d 23 64 65 |ltiFinde|r */.#de|
|00000cf0| 66 69 6e 65 09 73 75 73 | 70 65 6e 64 52 65 73 75 |fine.sus|pendResu|
|00000d00| 6d 65 4d 65 73 73 61 67 | 65 09 31 09 09 2f 2a 20 |meMessag|e.1../* |
|00000d10| 68 69 67 68 20 62 79 74 | 65 20 6f 66 20 73 75 73 |high byt|e of sus|
|00000d20| 70 65 6e 64 2f 72 65 73 | 75 6d 65 20 65 76 65 6e |pend/res|ume even|
|00000d30| 74 20 6d 65 73 73 61 67 | 65 20 2a 2f 0d 23 64 65 |t messag|e */.#de|
|00000d40| 66 69 6e 65 09 72 65 73 | 75 6d 65 4d 61 73 6b 09 |fine.res|umeMask.|
|00000d50| 09 09 09 31 09 09 2f 2a | 20 62 69 74 20 6f 66 20 |...1../*| bit of |
|00000d60| 6d 65 73 73 61 67 65 20 | 66 69 65 6c 64 20 66 6f |message |field fo|
|00000d70| 72 20 72 65 73 75 6d 65 | 20 76 73 2e 20 73 75 73 |r resume| vs. sus|
|00000d80| 70 65 6e 64 20 2a 2f 0d | 23 64 65 66 69 6e 65 09 |pend */.|#define.|
|00000d90| 6d 6f 75 73 65 4d 6f 76 | 65 64 4d 65 73 73 61 67 |mouseMov|edMessag|
|00000da0| 65 09 09 30 78 46 41 09 | 2f 2a 20 68 69 67 68 20 |e..0xFA.|/* high |
|00000db0| 62 79 74 65 20 6f 66 20 | 6d 6f 75 73 65 2d 6d 6f |byte of |mouse-mo|
|00000dc0| 76 65 64 20 65 76 65 6e | 74 20 6d 65 73 73 61 67 |ved even|t messag|
|00000dd0| 65 20 2a 2f 0d 0d 2f 2a | 20 54 68 65 20 66 6f 6c |e */../*| The fol|
|00000de0| 6c 6f 77 69 6e 67 20 63 | 6f 6e 73 74 61 6e 74 73 |lowing c|onstants|
|00000df0| 20 61 72 65 20 75 73 65 | 64 20 74 6f 20 69 64 65 | are use|d to ide|
|00000e00| 6e 74 69 66 79 20 6d 65 | 6e 75 73 20 61 6e 64 20 |ntify me|nus and |
|00000e10| 74 68 65 69 72 20 69 74 | 65 6d 73 2e 20 54 68 65 |their it|ems. The|
|00000e20| 20 6d 65 6e 75 20 49 44 | 73 0d 20 20 20 68 61 76 | menu ID|s. hav|
|00000e30| 65 20 61 6e 20 22 6d 22 | 20 70 72 65 66 69 78 20 |e an "m"| prefix |
|00000e40| 61 6e 64 20 74 68 65 20 | 69 74 65 6d 20 6e 75 6d |and the |item num|
|00000e50| 62 65 72 73 20 77 69 74 | 68 69 6e 20 65 61 63 68 |bers wit|hin each|
|00000e60| 20 6d 65 6e 75 20 68 61 | 76 65 20 61 6e 20 22 69 | menu ha|ve an "i|
|00000e70| 22 20 70 72 65 66 69 78 | 2e 20 2a 2f 0d 23 64 65 |" prefix|. */.#de|
|00000e80| 66 69 6e 65 09 6d 41 70 | 70 6c 65 09 09 09 09 09 |fine.mAp|ple.....|
|00000e90| 31 32 38 09 09 2f 2a 20 | 41 70 70 6c 65 20 6d 65 |128../* |Apple me|
|00000ea0| 6e 75 20 2a 2f 0d 23 64 | 65 66 69 6e 65 09 69 41 |nu */.#d|efine.iA|
|00000eb0| 62 6f 75 74 09 09 09 09 | 09 31 0d 0d 23 64 65 66 |bout....|.1..#def|
|00000ec0| 69 6e 65 09 6d 46 69 6c | 65 09 09 09 09 09 31 32 |ine.mFil|e.....12|
|00000ed0| 39 09 09 2f 2a 20 46 69 | 6c 65 20 6d 65 6e 75 20 |9../* Fi|le menu |
|00000ee0| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 69 4e 65 77 09 |*/.#defi|ne.iNew.|
|00000ef0| 09 09 09 09 31 0d 23 64 | 65 66 69 6e 65 09 69 43 |....1.#d|efine.iC|
|00000f00| 6c 6f 73 65 09 09 09 09 | 09 34 0d 23 64 65 66 69 |lose....|.4.#defi|
|00000f10| 6e 65 09 69 51 75 69 74 | 09 09 09 09 09 31 32 0d |ne.iQuit|.....12.|
|00000f20| 0d 23 64 65 66 69 6e 65 | 09 6d 45 64 69 74 09 09 |.#define|.mEdit..|
|00000f30| 09 09 09 31 33 30 09 09 | 2f 2a 20 45 64 69 74 20 |...130..|/* Edit |
|00000f40| 6d 65 6e 75 20 2a 2f 0d | 23 64 65 66 69 6e 65 09 |menu */.|#define.|
|00000f50| 69 55 6e 64 6f 09 09 09 | 09 09 31 0d 23 64 65 66 |iUndo...|..1.#def|
|00000f60| 69 6e 65 09 69 43 75 74 | 09 09 09 09 09 33 0d 23 |ine.iCut|.....3.#|
|00000f70| 64 65 66 69 6e 65 09 69 | 43 6f 70 79 09 09 09 09 |define.i|Copy....|
|00000f80| 09 34 0d 23 64 65 66 69 | 6e 65 09 69 50 61 73 74 |.4.#defi|ne.iPast|
|00000f90| 65 09 09 09 09 09 35 0d | 23 64 65 66 69 6e 65 09 |e.....5.|#define.|
|00000fa0| 69 43 6c 65 61 72 09 09 | 09 09 09 36 0d 0d 2f 2a |iClear..|...6../*|
|00000fb0| 09 45 78 74 72 65 6d 65 | 4e 65 67 20 61 6e 64 20 |.Extreme|Neg and |
|00000fc0| 45 78 74 72 65 6d 65 50 | 6f 73 20 61 72 65 20 75 |ExtremeP|os are u|
|00000fd0| 73 65 64 20 74 6f 20 73 | 65 74 20 75 70 20 77 69 |sed to s|et up wi|
|00000fe0| 64 65 20 6f 70 65 6e 20 | 72 65 63 74 61 6e 67 6c |de open |rectangl|
|00000ff0| 65 73 20 61 6e 64 20 72 | 65 67 69 6f 6e 73 2e 20 |es and r|egions. |
|00001000| 2a 2f 0d 23 64 65 66 69 | 6e 65 20 65 78 74 72 65 |*/.#defi|ne extre|
|00001010| 6d 65 4e 65 67 09 09 09 | 09 2d 33 32 37 36 38 0d |meNeg...|.-32768.|
|00001020| 23 64 65 66 69 6e 65 20 | 65 78 74 72 65 6d 65 50 |#define |extremeP|
|00001030| 6f 73 09 09 09 09 33 32 | 37 36 37 20 2d 20 31 20 |os....32|767 - 1 |
|00001040| 2f 2a 20 72 65 71 75 69 | 72 65 64 20 74 6f 20 61 |/* requi|red to a|
|00001050| 64 64 72 65 73 73 20 61 | 6e 20 6f 6c 64 20 72 65 |ddress a|n old re|
|00001060| 67 69 6f 6e 20 62 75 67 | 20 2a 2f 0d 0d 2f 2a 09 |gion bug| */../*.|
|00001070| 54 65 78 74 4d 61 72 67 | 69 6e 20 69 73 20 74 68 |TextMarg|in is th|
|00001080| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 70 69 78 65 |e number| of pixe|
|00001090| 6c 73 20 77 65 20 6c 65 | 61 76 65 20 62 6c 61 6e |ls we le|ave blan|
|000010a0| 6b 20 61 74 20 74 68 65 | 20 65 64 67 65 20 6f 66 |k at the| edge of|
|000010b0| 20 74 68 65 20 77 69 6e | 64 6f 77 2e 20 2a 2f 0d | the win|dow. */.|
|000010c0| 23 64 65 66 69 6e 65 20 | 74 65 78 74 4d 61 72 67 |#define |textMarg|
|000010d0| 69 6e 09 09 09 09 32 0d | 0d 2f 2a 20 4d 61 78 4f |in....2.|./* MaxO|
|000010e0| 70 65 6e 44 6f 63 75 6d | 65 6e 74 73 20 69 73 20 |penDocum|ents is |
|000010f0| 75 73 65 64 20 74 6f 20 | 64 65 74 65 72 6d 69 6e |used to |determin|
|00001100| 65 20 77 68 65 74 68 65 | 72 20 61 20 6e 65 77 20 |e whethe|r a new |
|00001110| 64 6f 63 75 6d 65 6e 74 | 20 63 61 6e 20 62 65 20 |document| can be |
|00001120| 6f 70 65 6e 65 64 0d 20 | 20 20 6f 72 20 63 72 65 |opened. | or cre|
|00001130| 61 74 65 64 2e 20 57 65 | 20 6b 65 65 70 20 74 72 |ated. We| keep tr|
|00001140| 61 63 6b 20 6f 66 20 74 | 68 65 20 6e 75 6d 62 65 |ack of t|he numbe|
|00001150| 72 20 6f 66 20 6f 70 65 | 6e 20 64 6f 63 75 6d 65 |r of ope|n docume|
|00001160| 6e 74 73 2c 20 61 6e 64 | 20 64 69 73 61 62 6c 65 |nts, and| disable|
|00001170| 20 74 68 65 0d 20 20 20 | 6d 65 6e 75 20 69 74 65 | the. |menu ite|
|00001180| 6d 73 20 74 68 61 74 20 | 63 72 65 61 74 65 20 61 |ms that |create a|
|00001190| 20 6e 65 77 20 64 6f 63 | 75 6d 65 6e 74 20 77 68 | new doc|ument wh|
|000011a0| 65 6e 20 74 68 65 20 6d | 61 78 69 6d 75 6d 20 69 |en the m|aximum i|
|000011b0| 73 20 72 65 61 63 68 65 | 64 2e 20 49 66 20 74 68 |s reache|d. If th|
|000011c0| 65 0d 20 20 20 6e 75 6d | 62 65 72 20 6f 66 20 64 |e. num|ber of d|
|000011d0| 6f 63 75 6d 65 6e 74 73 | 20 66 61 6c 6c 73 20 62 |ocuments| falls b|
|000011e0| 65 6c 6f 77 20 74 68 65 | 20 6d 61 78 69 6d 75 6d |elow the| maximum|
|000011f0| 2c 20 74 68 65 20 69 74 | 65 6d 73 20 61 72 65 20 |, the it|ems are |
|00001200| 65 6e 61 62 6c 65 64 20 | 61 67 61 69 6e 2e 20 2a |enabled |again. *|
|00001210| 2f 0d 23 64 65 66 69 6e | 65 09 6d 61 78 4f 70 65 |/.#defin|e.maxOpe|
|00001220| 6e 44 6f 63 75 6d 65 6e | 74 73 09 09 31 0d 09 0d |nDocumen|ts..1...|
|00001230| 2f 2a 09 4d 61 78 44 6f | 63 57 69 64 74 68 20 69 |/*.MaxDo|cWidth i|
|00001240| 73 20 61 6e 20 61 72 62 | 69 74 72 61 72 79 20 6e |s an arb|itrary n|
|00001250| 75 6d 62 65 72 20 75 73 | 65 64 20 74 6f 20 73 70 |umber us|ed to sp|
|00001260| 65 63 69 66 79 20 74 68 | 65 20 77 69 64 74 68 20 |ecify th|e width |
|00001270| 6f 66 20 74 68 65 20 54 | 45 52 65 63 27 73 0d 09 |of the T|ERec's..|
|00001280| 64 65 73 74 69 6e 61 74 | 69 6f 6e 20 72 65 63 74 |destinat|ion rect|
|00001290| 61 6e 67 6c 65 20 73 6f | 20 74 68 61 74 20 77 6f |angle so| that wo|
|000012a0| 72 64 20 77 72 61 70 20 | 61 6e 64 20 68 6f 72 69 |rd wrap |and hori|
|000012b0| 7a 6f 6e 74 61 6c 20 73 | 63 72 6f 6c 6c 69 6e 67 |zontal s|crolling|
|000012c0| 20 63 61 6e 20 62 65 0d | 09 64 65 6d 6f 6e 73 74 | can be.|.demonst|
|000012d0| 72 61 74 65 64 2e 20 2a | 2f 0d 23 64 65 66 69 6e |rated. *|/.#defin|
|000012e0| 65 09 6d 61 78 44 6f 63 | 57 69 64 74 68 09 09 09 |e.maxDoc|Width...|
|000012f0| 09 35 37 36 0d 09 0d 2f | 2a 20 4d 69 6e 44 6f 63 |.576.../|* MinDoc|
|00001300| 57 69 64 74 68 20 69 73 | 20 75 73 65 64 20 74 6f |Width is| used to|
|00001310| 20 6c 69 6d 69 74 20 74 | 68 65 20 6d 69 6e 69 6d | limit t|he minim|
|00001320| 75 6d 20 64 69 6d 65 6e | 73 69 6f 6e 20 6f 66 20 |um dimen|sion of |
|00001330| 61 20 77 69 6e 64 6f 77 | 20 77 68 65 6e 20 47 72 |a window| when Gr|
|00001340| 6f 77 57 69 6e 64 6f 77 | 0d 09 69 73 20 63 61 6c |owWindow|..is cal|
|00001350| 6c 65 64 2e 20 2a 2f 0d | 23 64 65 66 69 6e 65 09 |led. */.|#define.|
|00001360| 6d 69 6e 44 6f 63 44 69 | 6d 09 09 09 09 36 34 0d |minDocDi|m....64.|
|00001370| 09 0d 2f 2a 09 4d 61 78 | 54 45 4c 65 6e 67 74 68 |../*.Max|TELength|
|00001380| 20 69 73 20 61 6e 20 61 | 72 62 69 74 72 61 72 79 | is an a|rbitrary|
|00001390| 20 6e 75 6d 62 65 72 20 | 75 73 65 64 20 74 6f 20 | number |used to |
|000013a0| 6c 69 6d 69 74 20 74 68 | 65 20 6c 65 6e 67 74 68 |limit th|e length|
|000013b0| 20 6f 66 20 74 65 78 74 | 20 69 6e 20 74 68 65 20 | of text| in the |
|000013c0| 54 45 52 65 63 0d 09 73 | 6f 20 74 68 61 74 20 76 |TERec..s|o that v|
|000013d0| 61 72 69 6f 75 73 20 65 | 72 72 6f 72 73 20 77 6f |arious e|rrors wo|
|000013e0| 6e 27 74 20 6f 63 63 75 | 72 20 66 72 6f 6d 20 74 |n't occu|r from t|
|000013f0| 6f 6f 20 6d 61 6e 79 20 | 63 68 61 72 61 63 74 65 |oo many |characte|
|00001400| 72 73 20 62 65 69 6e 67 | 20 69 6e 20 74 68 65 20 |rs being| in the |
|00001410| 74 65 78 74 2e 20 2a 2f | 0d 23 64 65 66 69 6e 65 |text. */|.#define|
|00001420| 09 6d 61 78 54 45 4c 65 | 6e 67 74 68 09 09 09 09 |.maxTELe|ngth....|
|00001430| 33 32 30 30 30 0d 0d 2f | 2a 09 43 6f 6e 74 72 6f |32000../|*.Contro|
|00001440| 6c 49 6e 76 69 73 69 62 | 6c 65 20 69 73 20 75 73 |lInvisib|le is us|
|00001450| 65 64 20 74 6f 20 27 74 | 75 72 6e 20 6f 66 66 27 |ed to 't|urn off'|
|00001460| 20 63 6f 6e 74 72 6f 6c | 73 20 28 69 2e 65 2e 2c | control|s (i.e.,|
|00001470| 20 63 61 75 73 65 20 74 | 68 65 20 63 6f 6e 74 72 | cause t|he contr|
|00001480| 6f 6c 20 6e 6f 74 0d 09 | 74 6f 20 62 65 20 72 65 |ol not..|to be re|
|00001490| 64 72 61 77 6e 20 61 73 | 20 61 20 72 65 73 75 6c |drawn as| a resul|
|000014a0| 74 20 6f 66 20 73 6f 6d | 65 20 43 6f 6e 74 72 6f |t of som|e Contro|
|000014b0| 6c 20 4d 61 6e 61 67 65 | 72 20 63 61 6c 6c 20 73 |l Manage|r call s|
|000014c0| 75 63 68 20 61 73 20 53 | 65 74 43 74 6c 56 61 6c |uch as S|etCtlVal|
|000014d0| 75 65 29 0d 09 62 79 20 | 62 65 69 6e 67 20 70 75 |ue)..by |being pu|
|000014e0| 74 20 69 6e 74 6f 20 74 | 68 65 20 63 6f 6e 74 72 |t into t|he contr|
|000014f0| 6c 56 69 73 20 66 69 65 | 6c 64 20 6f 66 20 74 68 |lVis fie|ld of th|
|00001500| 65 20 72 65 63 6f 72 64 | 2e 20 43 6f 6e 74 72 6f |e record|. Contro|
|00001510| 6c 56 69 73 69 62 6c 65 | 20 69 73 20 75 73 65 64 |lVisible| is used|
|00001520| 0d 09 74 68 65 20 73 61 | 6d 65 20 77 61 79 20 74 |..the sa|me way t|
|00001530| 6f 20 27 74 75 72 6e 20 | 6f 6e 27 20 74 68 65 20 |o 'turn |on' the |
|00001540| 63 6f 6e 74 72 6f 6c 2e | 20 2a 2f 0d 23 64 65 66 |control.| */.#def|
|00001550| 69 6e 65 20 63 6f 6e 74 | 72 6f 6c 49 6e 76 69 73 |ine cont|rolInvis|
|00001560| 69 62 6c 65 09 09 30 0d | 23 64 65 66 69 6e 65 20 |ible..0.|#define |
|00001570| 63 6f 6e 74 72 6f 6c 56 | 69 73 69 62 6c 65 09 09 |controlV|isible..|
|00001580| 09 30 78 46 46 0d 0d 2f | 2a 09 53 63 72 6f 6c 6c |.0xFF../|*.Scroll|
|00001590| 42 61 72 41 64 6a 75 73 | 74 2c 20 47 72 6f 77 42 |BarAdjus|t, GrowB|
|000015a0| 6f 78 41 64 6a 75 73 74 | 2c 20 61 6e 64 20 53 63 |oxAdjust|, and Sc|
|000015b0| 72 6f 6c 6c 42 61 72 20 | 77 69 64 74 68 20 61 72 |rollBar |width ar|
|000015c0| 65 20 75 73 65 64 20 69 | 6e 20 63 61 6c 63 75 6c |e used i|n calcul|
|000015d0| 61 74 69 6e 67 0d 09 76 | 61 6c 75 65 73 20 66 6f |ating..v|alues fo|
|000015e0| 72 20 63 6f 6e 74 72 6f | 6c 20 70 6f 73 69 74 69 |r contro|l positi|
|000015f0| 6f 6e 69 6e 67 20 61 6e | 64 20 73 69 7a 69 6e 67 |oning an|d sizing|
|00001600| 2e 20 2a 2f 0d 23 64 65 | 66 69 6e 65 20 73 63 72 |. */.#de|fine scr|
|00001610| 6f 6c 6c 62 61 72 41 64 | 6a 75 73 74 09 09 09 31 |ollbarAd|just...1|
|00001620| 35 0d 23 64 65 66 69 6e | 65 20 67 72 6f 77 62 6f |5.#defin|e growbo|
|00001630| 78 41 64 6a 75 73 74 09 | 09 09 31 33 0d 23 64 65 |xAdjust.|..13.#de|
|00001640| 66 69 6e 65 20 73 63 72 | 6f 6c 6c 62 61 72 57 69 |fine scr|ollbarWi|
|00001650| 64 74 68 09 09 09 31 36 | 0d 09 0d 2f 2a 09 43 72 |dth...16|.../*.Cr|
|00001660| 43 68 61 72 61 63 74 65 | 72 20 69 73 20 75 73 65 |Characte|r is use|
|00001670| 64 20 74 6f 20 63 6f 6d | 70 61 72 65 20 66 6f 72 |d to com|pare for|
|00001680| 20 61 20 63 61 72 72 69 | 61 67 65 20 72 65 74 75 | a carri|age retu|
|00001690| 72 6e 20 77 68 65 6e 20 | 63 61 6c 63 75 6c 61 74 |rn when |calculat|
|000016a0| 69 6e 67 20 74 68 65 0d | 09 6e 75 6d 62 65 72 20 |ing the.|.number |
|000016b0| 6f 66 20 6c 69 6e 65 73 | 20 69 6e 20 74 68 65 20 |of lines| in the |
|000016c0| 54 65 78 74 45 64 69 74 | 20 72 65 63 6f 72 64 2e |TextEdit| record.|
|000016d0| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 20 63 72 43 68 | */.#def|ine crCh|
|000016e0| 61 72 61 63 74 65 72 09 | 09 09 09 31 33 0d 09 0d |aracter.|...13...|
|000016f0| 2f 2a 09 42 75 74 74 6f | 6e 53 63 72 6f 6c 6c 20 |/*.Butto|nScroll |
|00001700| 69 73 20 68 6f 77 20 6d | 61 6e 79 20 70 69 78 65 |is how m|any pixe|
|00001710| 6c 73 20 74 6f 20 73 63 | 72 6f 6c 6c 20 68 6f 72 |ls to sc|roll hor|
|00001720| 69 7a 6f 6e 74 61 6c 6c | 79 20 77 68 65 6e 20 74 |izontall|y when t|
|00001730| 68 65 20 62 75 74 74 6f | 6e 20 70 61 72 74 0d 09 |he butto|n part..|
|00001740| 6f 66 20 74 68 65 20 68 | 6f 72 69 7a 6f 6e 74 61 |of the h|orizonta|
|00001750| 6c 20 73 63 72 6f 6c 6c | 62 61 72 20 69 73 20 70 |l scroll|bar is p|
|00001760| 72 65 73 73 65 64 2e 20 | 2a 2f 0d 23 64 65 66 69 |ressed. |*/.#defi|
|00001770| 6e 65 20 62 75 74 74 6f | 6e 53 63 72 6f 6c 6c 09 |ne butto|nScroll.|
|00001780| 09 09 34 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |..4.....|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001810| 80 05 43 6c 6f 73 65 00 | 00 00 54 00 04 00 00 00 |..Close.|..T.....|
|00001820| 00 00 45 00 10 00 59 00 | 59 04 03 59 65 73 00 00 |..E...Y.|Y..Yes..|
|00001830| 0a 54 45 53 61 6d 70 6c | 65 2e 68 6d 02 00 00 00 |.TESampl|e.hm....|
|00001840| 54 45 58 54 4d 50 53 20 | 00 00 00 00 00 40 00 00 |TEXTMPS |.....@..|
|00001850| 00 00 54 45 58 54 4d 50 | 53 20 00 00 00 00 00 40 |..TEXTMP|S .....@|
|00001860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001870| 00 00 9f 0c 13 f0 00 00 | 17 04 00 00 01 7e 00 00 |........|.....~..|
|00001880| 00 00 00 00 00 00 81 04 | 4e 4f 54 45 00 00 00 3c |........|NOTE...<|
|00001890| 00 03 00 00 00 00 00 68 | 01 20 00 7c 01 71 04 02 |.......h|. .|.q..|
|000018a0| 4f 4b 00 00 00 00 00 b0 | 00 10 00 c0 00 72 88 00 |OK......|.....r..|
|000018b0| 00 00 00 00 00 0c 00 0a | 00 5c 01 72 88 00 00 00 |........|.\.r....|
|000018c0| 00 00 00 b0 00 78 00 c0 | 00 da 88 00 00 00 00 1c |.....x..|........|
|000018d0| 00 40 00 40 00 9a 01 c4 | 00 01 01 00 00 00 00 00 |.@.@....|........|
|000018e0| 00 00 00 82 07 43 6f 6e | 66 69 72 6d 00 00 00 34 |.....Con|firm...4|
|000018f0| 00 02 00 00 00 00 00 40 | 00 08 00 54 00 51 04 02 |.......@|...T.Q..|
|00001900| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 2d 2d 2d |...H..Mo|naco.---|
|00001910| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001920| 2d 2d 2d 2d 2d 2d 00 06 | 00 04 00 27 00 00 01 df |------..|...'....|
|00001930| 02 30 00 27 00 00 01 df | 02 30 9f 1a b1 18 00 00 |.0.'....|.0......|
|00001940| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00001950| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 30 99 10 |...L...L|...2.0..|
|00001960| 06 fc 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00001970| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+